<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue03</title>
    <script src="/js/vue.js"></script>
</head>
<body>
    <div class="app">
        <h3>班级：{{classes}}</h3>
        <table>
            <tr>
                <td>姓名</td>
                <td>年龄</td>
            </tr>
            <tr v-for="u in users">
                <td>{{u.name}}</td>
                <td>{{u.age}}</td>
            </tr>
        </table>
    </div>
    <script>
        let vue = new Vue({
            el:".app",
            data(){
                return {
                    classes: '七班',
                    users:[
                        {name:'张三1',age:20},
                        {name:'张三2',age:22},
                        {name:'张三3',age:24},
                        {name:'张三4',age:24},
                    ]
                }
            }
        })
    </script>
</body>
</html>